#include "main.h"
#include <sys/socket.h>
using namespace std;
using namespace cv;

extern mutex mtxQueueInput_client;        // mutex of input queue client
extern queue<pair<int, Mat>> queueInput_client;  // input queue client
extern mutex mtxQueueOutput;
extern queue<Mat> queueOutput;  // 目标追踪输出队列

extern bool bReading;      // flag of input
extern bool bDetecting;    // 目标检测进程状态
extern int Frame_cnt;
extern int idxInputImage;  // image index of input video
extern const char* SAVE_PATH; 

// extern video_property video_probs; // 视频属性类

void videoTransClient(const char *video_name, int cpuid, int sock_tcp[]);
void videoWrite(int cpuid);